#ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QThread>
#include <QDebug>
#include <QMutex>
#include <QSemaphore>  

#include "pclCloud.h"
#include "myMutex.h"

class MyThread : public QThread
{
public:
	MyThread(QObject* parent = nullptr);
	void regist(pclCloud *cloudDat, PointCloudT::Ptr cloud, int angle, myMutex *mutex, myMutex *rmutex, QSemaphore *samp);
	void setStatus(bool status);
	bool isStart();
	pclCloud        *m_cloudDat;
	PointCloudT::Ptr m_cloud;
	int              m_angle;
protected:
	myMutex         *m_mutex;
	myMutex         *m_rmutex;
	QSemaphore      *m_samp;
	bool             status;


protected:
	void run();
};

#endif // MYTHREAD_H